import { request } from '@/request'
import { BusinessDataResult, OverviewEmployeeResult, OverviewOrdersResult, OverviewResult } from '@/types/workspace'

export function getBusinessDataApi() {
  return request<BusinessDataResult>(
    '/admin/workspace/businessData', "get"
  )
}

export function getOverviewDishesApi() {
  return request<OverviewResult>(
    '/admin/workspace/overviewDishes', "get"
  )
}

export function getOverviewOrdersApi() {
  return request<OverviewOrdersResult>(
    '/admin/workspace/overviewOrders', "get"
  )
}

export function getOverviewSetmealsApi() {
  return request<OverviewResult>(
    '/admin/workspace/overviewSetmeals', "get"
  )
}

export function getOverviewEmployeeApi() {
  return request<OverviewEmployeeResult>(
    '/admin/workspace/overviewEmployee', "get"
  )
}
